<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>  <!--引入Vue3的代码库-->
    <div id="app">
        <h3>{{obj.age}}</h3>
        <h3>{{sum}}</h3>
    
    </div>
    <script>
        const {createApp,ref}=Vue
        createApp({
            setup(){
                const obj=ref({
                    name:"wwp",
                    age:18
                })
                const sum=ref(18);
                return {obj,sum}
            }
        }).mount("#app")
    </script>
</body>
</html>